package com.itheima.system;

/**
 * @program: springmvc_ssm
 * @description:
 * @author: zhanghz001
 * @create: 2020-12-04 11:39
 **/
public class BussinessException extends RuntimeException {
    private Integer code;

    public BussinessException(Integer code) {
        this.code = code;
    }

    public BussinessException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public BussinessException(String message, Throwable cause, Integer code) {
        super(message, cause);
        this.code = code;
    }

    public BussinessException(Throwable cause, Integer code) {
        super(cause);
        this.code = code;
    }

    public BussinessException(String message, Throwable cause, boolean enableSuppression,
                              boolean writableStackTrace, Integer code) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
